package com.lwj.test.thread.demo1;

/**
 * @author frankwu
 *
 */
public class ProductWorkerImpl implements IProductWorker {

	private String taskName = null;
	
	public ProductWorkerImpl(String taskName) {
		this.taskName = taskName;
	}

	/* 
	 * 实现
	 */
	public void doWork() {
		System.out.println("[" + Thread.currentThread().getName() + "]consume product " + taskName);
	}

	public String toString()
	{
		return taskName;
	}
	
}
